#ifndef __AVI_INDEX_H__
#define __AVI_INDEX_H__

class	CAviBaseIndex
{
protected:
	int ClassType;
};

typedef struct
{
	FILEHANDLE	fid;
	long		BaseOffset;
	long		ChunkSize;
	int			nBlockAlign;
	int			ID;
	int			IsVideo;
	int			SectionSize;
} AVIINDEXARGUMENT;

class CAviIndex :
	public CAviBaseIndex
{
public:
	int		Init(int type, const AVIINDEXARGUMENT *arg);
	int		InitResumePlay(const AVIINDEXARGUMENT *arg);
	long	GetNumberOfFrames() const;
	int		Get(long tarFrame, long *Offset, long *Size, long *IsKey) const;

// int IsEOS() const;
private:
	char	WorkMem[6208];
};
#endif // __AVI_INDEX_H__
